﻿using UnityEngine;
using System.Collections;

public class MeterCounter : MonoBehaviour {
	string tag = "MeterCounter";
	static int tc = 0;
	// Use this for initialization
	void Start () {
		GLOBAL.s_iMeterCounter = 0;
	}
	
	// Update is called once per frame
	void Update () {
	
	}

	
	void OnTriggerEnter2D(Collider2D collider) {
		if (collider.gameObject.CompareTag("Enemy")) {
			// Destroy 
			GLOBAL.s_iMeterCounter += 1;
//			Debug.Log("ngdlong_" + tc++ + "_" + tag + GLOBAL.s_iMeterCounter);
		}
	}



}
